package dao;

import com.prg.service.BackupService;
import com.prg.dao.base.BaseDaoI;
import org.apache.log4j.Logger;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 14-12-7
 * Time: 下午3:42
 * To change this template use File | Settings | File Templates.
 */
@RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(locations = {"classpath:spring-hibernate.xml","classpath:root-context.xml"})

public class HibernateDAO {
    Logger logger=Logger.getLogger(getClass());
    @Autowired
    private BaseDaoI baseDao;
    @Autowired
    private BackupService backupService;
    @Test

    public void save(){


        backupService.saveback();

    }

}
